package admin

import (
	"github.com/maxyang107/jinglan/common"
	"github.com/maxyang107/jinglan/model/goods"
)

var (
	AdminRepoService = &RepoSer{}
)

type RepoSer struct{}

func (r RepoSer) GetRepoList(param common.RepoList) *goods.RepoList {
	if param.PerPage == 0 {
		param.PerPage = 10
	}

	return goods.GetRepoList(param)
}

func (r RepoSer) ModifyRepoStatus(param common.RepoModify) error {
	return goods.ModefyRepoStatus(param)
}
